<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FrmListaOrdenAgregar.aspx.vb" Inherits="TGB.FrmListaOrdenAgregar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Lista de ordenes para agregar</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style ="width :700px;height:auto ">  
        <table style="width :700px ; height:500px; background-image: url(imagenes/bg.jpg); background-repeat: repeat-x; border-collapse: separate;" >
            <tr>
                <td style="background-repeat: repeat-x; height: 10px; width: 696px;" align="center" valign="middle" colspan="3">
                    <img src="../imagenes/EitiSoft.jpg" style="width: 285px; height: 55px" /></td>
            </tr>
            <tr>
                <td align="center" colspan="3" style="background-repeat: repeat-x; height: 10px; width: 696px;"
                    valign="middle">
                    <asp:Label ID="Label1" runat="server" Style="font-weight: bold; font-size: 16px;
                        font-family: calibri" Text="Ordenes Servicios por Cliente con estado Emitida" Width="364px"></asp:Label></td>
            </tr>
            <tr>
                <td style="height: 160px; width: 696px;" align="center" valign="top" colspan="3">
                    <asp:Label ID="LblCliente" runat="server" Text="Cliente:"></asp:Label>&nbsp;<asp:DropDownList ID="CboClientes" runat="server" Width="247px" AutoPostBack="True" AppendDataBoundItems="True">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RQCliente" runat="server" ControlToValidate="CboClientes"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:Label ID="Label4" runat="server" Text="Estado:"></asp:Label>
                    <asp:Label ID="lblEstado" runat="server" Text="Emitida"></asp:Label>
                    &nbsp;&nbsp;
                    <asp:GridView ID="GVOrdenes" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="Black" GridLines="Horizontal" Height="1px" PageSize="8" Width="636px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" AllowPaging="True" CellSpacing="1">
                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" Font-Names="Calibri" Font-Size="12px" />
                        <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LnkSeleccionar" runat="server" CausesValidation="False"
                                        Text="Seleccionar" CommandName="Select"></asp:LinkButton>&nbsp;<asp:HiddenField ID="HFCodigoOrdenServicio" runat="server"
                                            Value='<%# bind("CodigoOrdenServicio") %>' />
                                    <asp:HiddenField ID="HFCodigoTUnidad" runat="server" Value='<%# bind("CodigoTUnidad") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Cliente">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblCliente" runat="server" Text='<%# bind("cliente") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Codigo de Orden">
                                <ItemTemplate>
                                    <asp:Label ID="lblCodigoOrdenServicio" runat="server" Text='<%# bind("CodigoOrdenServicio") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Fecha">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FechaSolicitud") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="LblFechaGeneracion" runat="server" Text='<%# Bind("FechaGeneracion","{0:d}") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Estado">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblEstado" runat="server" Text='<%# bind("Estado") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Observaci&#243;n">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Descripcion") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="LblObservacion" runat="server" Text='<%# Bind("Observacion") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tipo de Unidad">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("CodigoCliente") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblUnidad" runat="server" Text='<%# Bind("Unidad") %>'></asp:Label>&nbsp;
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle Font-Names="Calibri" Font-Size="12px" />
                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" Font-Names="Calibri" Font-Size="12px" />
                        <EditRowStyle Font-Overline="True" />
                        <EmptyDataTemplate>
                            <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="Red" Text="No existen Registros Relacionados"
                                Width="247px"></asp:Label>
                        </EmptyDataTemplate>
                    </asp:GridView>
                    &nbsp; &nbsp;<asp:LinkButton ID="BtnImprimir" runat="server" Font-Overline="False" Font-Size="10pt" Visible="False">Reporte</asp:LinkButton>
                   </td>
            </tr>
            <tr>
                <td align="center" style="width: 696px; height: 24px;" valign="middle" colspan="3">
                    &nbsp;<asp:Label ID="lblError" runat="server" ForeColor="Red" Text="Seleccione los parametros de busqueda"
                        Width="342px"></asp:Label></td>

        </table>
    </div>
    </form>
</body>
</html>
